﻿using System;
using System.Web;
using System.Web.Services;

namespace Acc_Web
{
    /// <summary>
    /// Summary description for $codebehindclassname$
    /// </summary>
    public class UserAccount : IHttpHandler
    {
        #region IHttpHandler Members

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            context.Response.Charset = "GBK";

            String action = context.Request.Params["act"];
            switch (action)
            {
                case "login":
                    break;
                case "addvs":
                    break;
                case "subvs":
                    break;
                default:
                    action = "";
                    break;
            }
            if (String.IsNullOrEmpty(action))
            {
                context.Response.Write("{\"error\":\"1001\",\"message\":\"未定义该操作\"}");
                return;
            }
        }


        public bool IsReusable
        {
            get { return false; }
        }

        #endregion

        
    }
}